package com.nus.fellowmark.modules.rbac.enums;

import lombok.Getter;

/**
 * @author Ruoyi Chen
 * @email chenruoyisz@gmail.com
 * @create 2023/2/11
 */

@Getter
public enum RoleEnum {

    AUTH(11, "auth"),
    VISITOR(22, "visitor"),
    NO_LOGIN(33, "noLogin"),
    SUPER_ADMIN(1,"super-admin"),
    ADMIN(2, "admin"),
    STAFF(3, "staff"),
    STUDENT(4,"stu");

    private int type;
    private String code;

    RoleEnum(int type, String code) {
        this.type = type;
        this.code = code;
    }

    public int getType() {
        return this.type;
    }
}
